<%@ page contentType="text/html;charset=UTF-8" %> 
<%@ include file="/include.inc.jsp"%>
<c:import url="../../pager/pagerForm.jsp"></c:import>


<form method="post" rel="pagerForm" action="${ctx}/sysDesk/list" onsubmit="return navTabSearch(this)">
<div class="pageHeader">
    <div class="searchBar">
    	<table class="searchContent">
			<tr>
				<td>
					项目名称：<input type="text" name=arg value="${vo.arg}"/>
				</td>
				
			</tr>
		</table>
		<div class="subBar">
			<ul>
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">查询</button></div></div></li>
			</ul>
		</div>
    </div>
</div>
</form>

<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
		<shiro:hasPermission name="sysDesk:add">
			<li><a class="add" href="#" onclick="hrefEdit_OnClick('${ctx}/sysDesk/edit','-1')"><span>添加</span></a></li>
		</shiro:hasPermission>
		<shiro:hasPermission name="sysDesk:del">
			<li><a class="delete" href="#" onclick="hrefDel_OnClick('${ctx}/sysDesk/del','checkboxSysDeskId')"  title="确定要删除吗?"><span>删除</span></a></li>
		</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" width="100%" layoutH="138" id="table1">
		<thead>
			<tr>
				<th width="40" align="center">
					<input type="checkbox" name="all" onclick="checkAll(this,'checkboxSysDeskId')" title="全选"/>
				</th>
				<th width="80">操作</th>
				<th width="200">项目名称</th>
				<th>标题URL</th>
				<th>内容URL</th>
				<th>状态</th>
				<th>显示顺序</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${sysDesklist}" var="sysDesk">
				<tr target="sid_sysRole" rel="${sysRole.id}">
					<td align="center">
                     	<input type="checkbox" onclick="checkbox_onclick(this)" name="checkboxSysDeskId" value="${sysDesk.id}"/>
                	</td>
					<td>
						<shiro:hasPermission name="sysDesk:edit">
						<a class="general" href="#" onclick="hrefEdit_OnClick('${ctx}/sysDesk/edit','${sysDesk.id}')">修改</a>
						</shiro:hasPermission>
					</td>
					<td>${sysDesk.titleName}</td>
					<td>${sysDesk.titleUrl}</td>
					<td>${sysDesk.linkUrl}</td>
					<td>
						<c:choose>
							<c:when test="${sysDesk.states == '0'}">启用</c:when>
							<c:when test="${sysDesk.states == '1'}">禁用</c:when>
							<c:otherwise></c:otherwise>
						</c:choose>
					</td>
					<td>${sysDesk.showOrder}</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
    <c:import url="../../pager/panelBar.jsp"></c:import>
</div>